# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=hackersh
_pkgname=Hackersh
pkgver=0.2.0
pkgrel=10
groups=('blackarch' 'blackarch-automation' 'blackarch-misc')
pkgdesc='A shell for with Pythonect-like syntax, including wrappers for commonly used security tools.'
arch=('any')
url='http://www.hackersh.org/'
license=('GPL')
depends=('python2' 'pythonect' 'python2-prettytable' 'python2-netaddr'
         'python2-networkx' 'python2-setuptools')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/source/H/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('eaea1d39e2288d6f894f4a80a47140e84dc4da3a30b853fabc1f86db2d6cf81ca11d5c0026b786c0b2dde8c29f6a8b440a7ac8b1c879fdf03582261aea7ea701')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" -O1 --skip-build
}

